package com.ruoyi.comment.domain;

import com.ruoyi.article.domain.Article;
import com.ruoyi.commentUpvote.domain.CommentUpvote;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.replay.domain.Reply;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;
import oshi.driver.unix.aix.Ls;

import java.util.List;

/**
 * 文章点评管理对象 comment
 * 
 * @author ruoyi
 * @date 2025-01-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Integer id;

    /** 文章id */
    @Excel(name = "文章id")
    private Integer articleId;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论时间 */
    @Excel(name = "评论时间")
    private String date;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Long upvoteNum;

    /** 逻辑删除 */
    private Integer isDeleted;


    private SysUser sysUser;

    private Article article;

    private List<Reply> replyList;

    private List<CommentUpvote> commentUpvoteList;

}
